package cn.lanqiao.springbootproject.mapper;

import cn.lanqiao.springbootproject.vo.ArticleVO;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleMapper {

    @Select("select * from article")
    List<ArticleVO> queryByPage();

    @Select("select * from article where article_id = #{id}")
    ArticleVO getById(int id);
}
